package cn.edu.tju.core.security.repository;

import cn.edu.tju.core.model.Person;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface PersonRepository extends JpaRepository<Person,Integer> {
    
    // 检查邮箱是否存在
    boolean existsByEmail(String email);

    // 检查手机号是否存在
    boolean existsByPhone(String phone);
}
